package com.reeygu.item.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 
 * @TableName t_goods
 */
@Data
@ApiModel(value = "商品对象", description = "用于接收并存储")
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode
@TableName("`t_goods`")
public class Goods implements Serializable {
    @ApiModelProperty(value = "主键", name = "主键(id)", required = true, example = "1L", hidden = false)
    private Long id;

    /**
     * 商品名称
     */
    private String goodsName;

    /**
     * 商品标题
     */
    private String goodsTitle;

    /**
     * 商品图片
     */
    private String goodsImg;

    /**
     * 商品详情
     */
    private String goodsDetail;

    /**
     * 商品价格
     */
    private BigDecimal goodsPrice;

    /**
     * 商品库存， -1表示没有限制
     */
    private Integer goodsStock;

    private static final long serialVersionUID = 1L;


}